
exports.add_activity_comment = function (req, res) {

    //获取bodyParams参数
    var bodyParams = req.routeInfo.bodyParams;


    //最终结果
    var resultData = {};

    //任务流创建
    async.waterfall([

            //机构活动添加
            function (cb) {
                R.SEND_HTTP(
                    req,
                    {
                        url: CORE_APIConfig.coreAPI.organizationAddActivityComment,
                        method: 'POST',
                        data: {
                            oac_oaid: bodyParams.oac_oaid,
                            oac_uid: bodyParams.oac_uid,
                            oac_content: bodyParams.oac_content,
                            oac_reply_uid: bodyParams.oac_reply_uid == undefined ? 0 : bodyParams.oac_reply_uid,
                            oac_is_reply: bodyParams.oac_is_reply == undefined ? 0 : bodyParams.oac_is_reply,
                            oac_fid: bodyParams.oac_fid
                        }
                    },
                    function (err, data) {
                        //判断是否有错误信息
                        if (err) {
                            return RES.response(res, false, "评论发布失败");
                        }

                        resultData = data;
                        cb();
                    }
                );

            }
            
        ], function (err, result) {

            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

}